package com.atguigu.customerdemo.mapper;

import com.atguigu.customerdemo.bean.Customer;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
@DS("mysql0828")
public interface CustomerMapper extends BaseMapper<Customer> {

    @Select("select * from customer where name = #{name}")
    @DS("mysql0828")
    public Customer getCustomerByName(@Param("name") String name);

}
